<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
         
          
          border: 1px solid black; 
        }
        img{
            float: right;
        }
        /* 解决父元素塌陷问题 */
        div:after{
          content: "";
          /* 块级元素 */
          display: block;
          /* 左右两侧都不允许浮动 */
          clear: both;
        }
        /* div{
          *zoom: 1;
        } */
    </style>
</head>
<body>
   <div>
    <img src="/跟着狂神/img/05.png" alt="">
    <img src="/跟着狂神/img/05.png" alt="">
    <img src="/跟着狂神/img/05.png" alt="">
    <img src="/跟着狂神/img/05.png" alt="">
   
   </div> 
</body>
</html>